h = {
	1 => {"name" => "이승만", "from" => 1948, "to" => 1960},
	2 => {"name" => "윤보선", "from" => 1960, "to" => 1962},
	3 => {"name" => "박정희", "from" => 1963, "to" => 1979},
	4 => {"name" => "최규하", "from" => 1979, "to" => 1980},
	5 => {"name" => "전두환", "from" => 1980, "to" => 1988},
	6 => {"name" => "노태우", "from" => 1988, "to" => 1993},
	7 => {"name" => "김영삼", "from" => 1993, "to" => 1998},
	8 => {"name" => "김대중", "from" => 1998, "to" => 2003},
	9 => {"name" => "노무현", "from" => 2003, "to" => 2008}
}

h.each do |k,v|
	puts '%{s1}, %{s2}' % {:s1=>k, :s2=>v["name"]}
	v.values.each do |val|
		puts val
	end
end